const express = require('express');
const detailRouter = express.Router();

const DB = require('../DataConn/DB')

detailRouter.use((req,res,next)=>{
  console.log(req.query);
  DB.findDocumentsById("all",req.query.id,(result)=>{
      res.json({
        status:200,
        data:result
      })
  })
  
})

module.exports =detailRouter;